package com.ethink.warehouse.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ethink.warehouse.api.info.MateInventoryDetailOrderMoreInfo;
import com.ethink.warehouse.api.response.MateInventoryDetailOrderQueryResponse;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.info.MateInventoryDetailOrderInfo;
import com.ethink.warehouse.api.request.MateInventoryDetailOrderQueryRequest;
import com.ethink.warehouse.common.entity.MateInventoryDetailOrder;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 入库/出库明细单 Mapper接口
 *
 * @author default
 * @date 2022-12-15
 */
@Mapper
public interface MateInventoryDetailOrderMapper extends BaseMapper<MateInventoryDetailOrder> {

    /**
     * 分页查询
     *
     * @param buildPage
     * @param request
     * @return
     */
    Page<MateInventoryDetailOrderQueryResponse> queryMateInventoryDetailOrder(Page buildPage, @Param("request") MateInventoryDetailOrderQueryRequest request);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    MateInventoryDetailOrderInfo getMateInventoryDetailOrderById(@Param("id") Long id);

    /**
     * 列表查询
     *
     * @param request
     * @return
     */
    List<MateInventoryDetailOrderMoreInfo> listMateInventoryDetailOrder(@Param("request") MateInventoryDetailOrderQueryRequest request);

}